#ifndef PLAYER_H
#define PLAYER_H
#include "model.h"
#include <QtOpenGL/qgl.h>
#include "cameraIDI.h"
#include "box.h"


class Player
{
private:
  Point position_;
  float angleX_;
  float angleY_;
  //Direction orientation_;
  Model *model_;
  Box box_;
  bool pintaCaixa_;
  double escala_;
  double moviment_;
  float diagonal_;

public:
    Player(Point initial_position, Model &model, double maxSize);
    void Render();
    void giraEsquerra();
    void giraDreta();
    Point endavant();
    void amunt();
    void abaix();
    void pintaCaixa();
    void move(Point position);
    void computeTransformedBox();
    float getDiagonal();
    void pintaEsfera();
    void encenLot();
    Point getPuntDeVista();
    Point getPuntDistant(float distancia);
    void primeraPersona();
};

#endif // PLAYER_H
